package cn.gson.springboot.model.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.gson.springboot.model.pojos.DoctorsAdvice;

public interface AdviceDao extends CrudRepository<DoctorsAdvice, Integer>{
	    
	    /*//根据住院号查询是否有医嘱，如果有，就修改医嘱的状态为2
		@Query("SELECT d FROM DoctorsAdvice d join d.inhospitalReg e where e.hospId=?1")
		public DoctorsAdvice findIfHospDoc(String hospid);*/
	
}
